﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace game
{
    public class Hud
    {
        private Radar radar;
        private HealthBar healthBar;
        private WeaponState weapons;
        private TrackingSystem tracking;

        public Hud(Scene scene, Ship playerShip)
        {
            radar = new Radar(scene, playerShip);
            healthBar = new HealthBar(scene, playerShip);
            weapons = new WeaponState(scene, playerShip);
            tracking = new TrackingSystem(scene, playerShip);
        }

        public void Update(GameTime gameTime)
        {
            radar.Update(gameTime);
            tracking.Update(gameTime);
            healthBar.Update(gameTime);
            weapons.Update(gameTime);
        }

        public void Draw(GameTime gameTime)
        {
            radar.Draw(gameTime);
            tracking.Draw(gameTime);
            healthBar.Draw(gameTime);
            weapons.Draw(gameTime);
        }
    }
}
